#include "behavior_tree/behavior_tree.h"

#include <filesystem>

#include "behaviortree_cpp/loggers/bt_cout_logger.h"

void testBehaviorTree()
{
    BT::BehaviorTreeFactory factory;

    factory.registerNodeType<IsRaining>("IsRaining");
    factory.registerNodeType<StayHome>("StayHome");
    factory.registerNodeType<GoOut>("GoOut");

    auto tree = factory.createTreeFromFile("../share/tree.xml");
    BT::StdCoutLogger logger_cout(tree);
    tree.tickWhileRunning();
}